package com.eliota.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author MG
 * @since 2023-04-03
 */
@Getter
@Setter
  @ApiModel(value = "Repair对象", description = "")
public class Repair implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("修理编号")
        @TableId(value = "repair_id", type = IdType.AUTO)
      private Integer repairId;

      @ApiModelProperty("修理人员姓名")
      private String repairmanName;

      @ApiModelProperty("修理人员电话")
      private String repairmanTel;

      @ApiModelProperty("维修编号")
      private String mtId;
     /* @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")*/
      @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
      @ApiModelProperty("维修时间")
      private LocalDateTime repairTime;

      @ApiModelProperty("故障原因")
      private String faultCause;

      @ApiModelProperty("备注")
      private String remark;

      @ApiModelProperty("修理情况，0：失败，1成功，2：跟进")
      private Integer status;


}
